package com.fun.crius.zuul;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.web.bind.annotation.GetMapping;

@EnableZuulProxy
@EnableEurekaClient
@SpringBootApplication
@Slf4j
public class App {

    @GetMapping("/")
    public String index() {

        return "crius-zuul is running...";
    }

    public static void main(String[] args) {
        SpringApplication.run(App.class, args);
        log.debug("crius-zuul 服务已启动...");
    }
}
